package com.facebook.imagepipeline.request;

import android.graphics.Bitmap;
import com.facebook.cache.common.CacheKey;
import com.facebook.common.references.CloseableReference;
import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory;
import com.facebook.imagepipeline.nativecode.Bitmaps;
import javax.annotation.Nullable;

public abstract class BasePostprocessor
  implements Postprocessor
{
  public String getName()
  {
    return "Unknown postprocessor";
  }

  @Nullable
  public CacheKey getPostprocessorCacheKey()
  {
    return null;
  }

  public CloseableReference<Bitmap> process(Bitmap paramBitmap, PlatformBitmapFactory paramPlatformBitmapFactory)
  {
    CloseableReference localCloseableReference1 = paramPlatformBitmapFactory.createBitmap(paramBitmap.getWidth(), paramBitmap.getHeight(), paramBitmap.getConfig());
    try
    {
      process((Bitmap)localCloseableReference1.get(), paramBitmap);
      CloseableReference localCloseableReference2 = CloseableReference.cloneOrNull(localCloseableReference1);
      return localCloseableReference2;
    }
    finally
    {
      CloseableReference.closeSafely(localCloseableReference1);
    }
  }

  public void process(Bitmap paramBitmap)
  {
  }

  public void process(Bitmap paramBitmap1, Bitmap paramBitmap2)
  {
    Bitmaps.copyBitmap(paramBitmap1, paramBitmap2);
    process(paramBitmap1);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imagepipeline.request.BasePostprocessor
 * JD-Core Version:    0.6.2
 */